package com.lsl.builder_pattern.example.example2;

import com.lsl.builder_pattern.example.example2.builder.ActorBuilder;
import com.lsl.builder_pattern.example.example2.concretebuilder.DevilBuilder;
import com.lsl.builder_pattern.example.example2.product.Actor;

/**
 * description:
 *
 * @author: liushengli
 * data: 2022/12/15
 */
public class Client {

    public static void main(String args[]) {
        Actor actor = ActorBuilder.construct(new DevilBuilder()); //通过指挥者创建完整的建造者对象

        String type = actor.getType();

        System.out.println("-------省略Director-------");

        System.out.println(type + "的外观：");

        System.out.println("面容：" + actor.getFace());

        System.out.println("性别：" + actor.getSex());

        System.out.println("服装：" + actor.getCostume());

        System.out.println("发型：" + actor.getHairstyle());

    }

}
